package com.aaa.dao;

import com.aaa.entity.Staff;

import java.util.List;

public interface StaffDao {

    /**
     * 登陆
     * @param staffId
     * @param password
     * @return
     */
    public Staff login(String staffId, String password);

    int updateStaffByStaffId(Staff staff);

    int addStaffByStaffId(Staff staff);

    List<Staff> findAllStaff(Integer pageNumber, Integer pageSize, String searchId, String searchName);

    int getAllStaffInfoCount(String searchId, String searchName);

    int updatePassword(String password, int staffId);

    int deleteStaffByStaffId(int staffId);

    List<Staff> getMaxStaffId();


}
